package cn.wolfcode.service;

import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface INoticeService {
    void save(Notice notice, Long[] ids);
    void delete(Long id);
    void update(Notice notice, Long[] ids);
    Notice get(Long id);
    List<Long> listAll();
    // 分页查询的方法
    PageInfo<Notice> query(QueryObject qo);

    void updateStatus(Long id, Integer status);

    List<Notice> selectNoticeByEmpId(Long id);

    void updateReadr(Long id, Integer readr);

    int selectUnread(boolean readr);

    List<Long> selectNoticeCountByEmpId(Long id);

    List<Notice> selectNOLook(List<Long> list);


}
